package com.zut.controller;


import com.zut.pojo.Classorder;
import com.zut.service.ClassorderService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author classorder
 * @since 2021-06-06
 */
@Controller
@RequestMapping("/classorder")
public class ClassorderController {
    @Resource
    private ClassorderService classorderService;

    //展示购买课时包信息
    @RequestMapping("/selectPro")
    public void selectPro(Integer parid, Model model){
        List<Classorder> classorders = classorderService.selectClassPro(parid);
        model.addAttribute(classorders);
    }
}

